<template>
  <title-bar v-if="route.path !== '/login'" />
  <layout v-if="route.meta.showLayout"></layout>
  <router-view v-slot="{ Component }" v-else>
    <component :is="Component" />
  </router-view>
</template>

<script setup lang="ts">
import TitleBar from "@renderer/components/title-bar/title-bar.vue";
import Layout from "@renderer/components/layout/index.vue";
import { useRoute } from "vue-router";

const route = useRoute();
</script>

<style></style>
